<template>
    21312321
    <div @click="to">to hello</div>
</template>

<script lang="ts" setup>
import { useRouter } from 'vue-router';
const router = useRouter()
// import router from '../router/index.ts';
// console.log(router)
const to = () => {
    router.push('/t')
}
</script>
<script lang="ts">
export default {
    name: 'Test',
}
</script>